linux: improve x86 page table handling performance
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 5 Apr 2007 08:10:33 +0000 (09:10 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 5 Apr 2007 08:10:33 +0000 (09:10 +0100)
commit6b5e36a305137df9318273981dbceb69ce170818
treebdca39f5809c28bb59270e2640f35e798c56011a
parentc937f696d7e25e92ba297b9628eb008f608c959f
linux: improve x86 page table handling performance

Where possible,
- use hypercalls instead of writing to read-only pages
- fold TLB flushes into page table update hypercalls
- on PAE, use single-access updates instead of two-access ones

The single change to PAE pte_clear() yields a 25-30% boost for kernel
builds on a 4x2x2 CPUs, 8Gb box; the other changes together yield
improvements of 2-5%.

Also, adjust backward compatibility handling in a few more places.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-2level.h
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-3level.h
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h